Ext.define('CDR.view.manager.pbx.PBXView', {
  extend: 'Ext.view.View',
  alias : 'widget.pbxview',
  targetObject: null,
  tpl: [
      '<tpl for=".">',
          '<div class="thumb-wrap">',
              '<div class="thumb">',
                  (!Ext.isIE6? '<img src="resources/app/images/{thumb}" />' : 
                  '<div style="width:76px;height:76px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'resources/app/images/{thumb}\')"></div>'),
              '</div>',
              '<span>{name}</span>',
          '</div>',
      '</tpl>'
  ],
  itemSelector: 'div.thumb-wrap',
  multiSelect: false,
  singleSelect: true,
  cls: 'x-image-view',
  autoScroll: true,
  bodyStyle:'background-color: white;',
  store: 'manager.pbx.PBXViewStore',
  initComponent: function() {
	  this.menu = Ext.createWidget('menu',{
		items:[{
				text: 'Add Profile',
				iconCls: 'icon-add',
				id: 'menu-item-add-profile'
			}, {
				text: 'Delete',
				iconCls: 'icon-delete',
				id: 'delete-profile'
		}]
	});
	this.callParent();
  }
});
